import '@/assets/main.css'
import { createApp } from 'vue'
import { createPinia } from 'pinia'
import ElementPlus from 'element-plus'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import 'element-plus/dist/index.css'
import '@/assets/main.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
// 图片点击放大
import 'viewerjs/dist/viewer.css'
import VueViewer from 'v-viewer'
import App from './App.vue'
//导入路由
import router from '@/router'

const app = createApp(App)
const pinia = createPinia()
// 循环注册ElementPlusIconsVue内的全部组件
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
app.use(VueViewer)
app.use(pinia)
app.use(router)
app.use(ElementPlus, { locale: zhCn})
app.mount('#app')
